package com.example.mqsender.controller;

import com.example.mqsender.annotation.SyncIDic;
import com.example.mqsender.entity.DemoEntity;
import enums.EventTypeEnum;
import enums.OperateTypeEnum;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ke
 * Created by on  2021-06-22 11:35
 */
@RestController
public class DemoController {


    @SyncIDic(event = EventTypeEnum.BUSINESS_ONE,operate = OperateTypeEnum.INSERT)
    @RequestMapping("/send")
    public DemoEntity senderMq() {
        DemoEntity demoEntity = new DemoEntity(1L, "张三", "男");
        return demoEntity;
    }
}
